package day240429.p1;

public class PersonTest {
    public static void main(String[] args) {
        Person person=new Person("Jie");
        Cat cat=new Cat("小花");
        Dog dog=new Dog("小白");
        Pig pig=new Pig("pp");
        Rabbit rabbit=new Rabbit("崽");
        person.input(cat);
        person.input(dog);
        person.input(pig);
        person.input(rabbit);
    }
}
